/**
 * @description 环境变量配置文件
 * @param {String} env
 * @returns {Object} OFFICIAL_URL: 官网地址; 
 * 						BASE_URL: 接口API; 
 * 						domian: 后端接口域名;
 * 						LYAPPID: 蓝莺Appid;
 * 						bucket: oss 桶名
 * @author Haixin Wen 2023-2-22
 */


// const env = 'development'
const env = 'production'
// const env = 'test'
// const env = 'preproduction' // 预生产

let obj = {}

if (env === 'production') {
	obj = {
		ENV: 'production',
		DOMIAN: 'https://shutanpp.com',
		//BASE_URL: `https://benben.ckscm.com.cn/api-dev`,
		BASE_URL: `http://127.0.0.1/rop`,
		OFFICIAL_URL: 'https://shutanpp.com',
		LYAPPID: 'dbpfpgycvfsq',
		bucket: 'shutanpp-formal',
	}
} else if (env === 'test') {
	obj = {
		ENV: 'test',
		DOMIAN: 'https://vt.shutanpp.com',
		BASE_URL: `https://vt.shutanpp.com/c`,
		// BASE_URL: `http://192.168.10.73:8001/c`, // 昌
		OFFICIAL_URL: 'https://shutanpp.com',
		LYAPPID: 'dbpfpgycvfsq',
		bucket: 'shutanpp-vt',
	}
} else if (env === 'preproduction') {
	obj = {
		ENV: 'production',
		DOMIAN: 'https://shutanpp.com',
		BASE_URL: `https://preproduction.shutanpp.com/c`,
		OFFICIAL_URL: 'https://shutanpp.com',
		LYAPPID: 'dbpfpgycvfsq',
		bucket: 'shutanpp-formal',
	}
} else {
	obj = {
		ENV: 'development',
		// DOMIAN: 'http://192.168.101.7:9001/rop',
		BASE_URL: `http://www..ckscm.com/rop`,
		// OFFICIAL_URL: 'https://shutanpp.com',
		// LYAPPID: 'dyrloyektxee',
		// bucket: 'shutanpp-test',
	}
}

export default obj